﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace Escape
{
    class MessageBlock: Block
    {

        String message;

        public MessageBlock(String message, Vector3 position)
        {
            this.message = message;
            solidRender = false;
            collision = false;
            this.position = position;
            loadTexture("solidBlock");
        }

        public override void onCollision()
        {
            Basic.spriteBatch.DrawString(Basic.font, message, new Vector2(300, 300), Color.White);
            base.onCollision();
        }
    }
}
